#!/bin/bash
for i in {1..5}
do
        ping -c 1 192.168.88.$i &> /dev/null
        if [ $? -eq 0 ] ; then
          echo "88.$i 网络正常"
        else
          echo "88.$i 网络异常"
fi
done